# !/usr/bin/env python3
# -*- encoding: utf-8 -*-
# @FileName    :   conf.py
# @DateTime    :   2022/8/23 | 19:58
# @Author      :   iotus3
# @GitHub      :   https://gitee.com/IoTus3
# @Version     :   1.0.0
# @Contact     :   xianglin.fu3@gmail.com
# @License     :   (C)Copyright 2022-2023, LiuYuStudio-NLPR-CASIA
# @Editor      :   Power By PyCharm
# @Desc        :   配置文件定义 -- 保存整个项目用到的配置


# 引入本地库
import os
import sys


# 定义文件路径
baseDIR = os.path.dirname(os.path.realpath(sys.argv[0]))

# 定义smtp文件路径
smtpPath = "./assets/smtp/smtp.json"

# 定义proxy文件路径
proxyPath = "./assets/proxy/proxy.txt"

# 定义日志文件路径
logPath = "./assets/log/"

# 定义状态map
statusMAPPING = {
    0: "初始化中",
    1: "待执行中",
    2: "正在执行",
    3: "完成并提醒",
    10: "异常并停止",
    11: "初始化失败",
}

# 程序状态定义
RUNNING = 1
STOPPING = 2
STOP = 3

# 定义爬虫的header
HEADER = {
    "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.5112.102 Safari/537.36 Edg/104.0.1293.63",
    "pragma": "no-cache",
    "upgrade-insecure-requests": "1",
    "cache-control": "no-cache",
    "accept-language": "zh-CN",
    "accept-encoding": "zip, deflate, br",
    "accept": "application/vnd.com.amazon.api+json; type=\"product/v2\"; expand=\"buyingOptions[].importDetails(product.import-details/v1),buyingOptions[].globalStore(product.global-store/v1)\"",
    "cookie": "session-id=458-4871454-1293510; i18n-prefs=CNY; ubid-acbcn=459-4436587-8065318; session-token=DlJ5lFdSo0jekRKmXHqyrnvRFaHUkvNfZk+SCUhtDozxTQIeSxBTn1lTewV79PXbnzcjrVn4EomlL04C905lphOL8h279uNDOD8j7NpxB2D1B6nCwEMRjbnYvco6UkLtGeLV+/j7/G8dabyMqrwllqcHjutZX34/AgHRmsIkLrwkubKsayL7m1lP93ui+e7r+dge7YLjjsvvhlsTGiHiOinBo6HmEYWF; session-id-time=2082787201l"
}

